package com.wynn.serviceFeign;

import com.wynn.pojo.ManHour;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

@FeignClient("serviceProviderBase")
public interface ProcedureClient {

    @GetMapping("procedure/selectAll")
    public List<ManHour> selectAll();

    @PostMapping("procedure/importHour")
    public void importHour(ArrayList<ArrayList<String>> row);

    @GetMapping("procedure/search")
    List<ManHour> search(@RequestParam(value = "name") String name);

    @GetMapping("procedure/findTT")
    public float findTT();

    @GetMapping("procedure/updateTT")
    public void updateTT(@RequestParam(value = "tt")float tt);
}
